# -*- coding: utf-8 -*-
import KBEngine
from KBEDebug import *


class CharacterAttCombination:
    """角色属性组合"""

    def __int__(self):
        self._attributeCalculationRecoder = {}  # 属性值计算保存 类别:属性组

    def updateAttributeRecoder(self, attCalculationType, attValue):
        """更新记录"""
        self._attributeCalculationRecoder[attCalculationType] = attValue

    def getAttributeRecoder(self, attCalculationType):
        """获取记录"""
        return self._attributeCalculationRecoder.get(attCalculationType, {})

    def clearAttributeRecoder(self, attCalculationType):
        """清除记录"""
        self._attributeCalculationRecoder[attCalculationType] = {}
